package com.atguigu.spzx.feign.product.fallback;

import com.atguigu.spzx.feign.product.ProductFeignClient;
import com.atguigu.spzx.model.vo.common.Result;
import lombok.extern.slf4j.Slf4j;

import java.util.Map;

/**
 * @author LT
 * @create 2024-03-28-15:51
 */
@Slf4j
public class ProductFeignClientFallback implements ProductFeignClient {


    @Override
    public Result getBySkuId(Long skuId) {
        log.info("ProductFeignClientFallback...getBySkuId的方法执行失败了");
        return Result.ok();
    }

    @Override
    public Result batchUpdateSkuStockAndSale(Map<Long, Integer>  map) {
        log.error("远程访问product服务-batchUpdateSkuStockAndSale失败，参数：map ={}", map);
        return Result.fail();
    }
}
